#include "HelpThread.h"

HelpThread::HelpThread()
{

}

HelpThread::~HelpThread()
{

}

void *HelpThread::Process()
{
    WriteLog(NOTICE, "Create Help thread[%d] successfully.", (int32)this->GetThreadID());

    int cnt = 0;
    while(!SAFE_STOP_FLAG)
    {
        if(cnt < 8)
        {
            cnt++;
            sleep(1);
            continue;
        }
        cnt = 0;
        WriteLog(NOTICE, "ConnPool info Active Socket Size[%d] Epoll Socket Size[%d].", ConnPool::Instance()->ActiveSocketSize(), ConnPool::Instance()->EpollSocketSize());
    }

    WriteLog(NOTICE, "Work Help[%d] exit successfully.", (int32)this->GetThreadID());
    return NULL;
}
